<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@page import="Dao.*"%>
<%@page import="Entity.*"%>
<%@page import="java.util.*"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>学生信息查询结果</title>
</head>
<body>
	<link rel="stylesheet"
		href="../css/administratorPage.css"
		type="text/css"></link>
	<div class="header">
		<font size='6' color="#FF0000"><br />&emsp;&emsp;&emsp;学生信息查询结果</font>
	</div>
	<div class="body">
		<table align="center" width="1300" border="1" class="mytable">
			<tr>
				<td><b>学号</b></td>
				<td><b>姓名</b></td>
				<td><b>性别</b></td>
				<td><b>学院</b></td>
				<td><b>专业</b></td>
				<td><b>班级</b></td>
				<td><b>身份证号</b></td>
				<td><b>密码</b></td>
				<td><b>电话</b></td>
				<td colspan="2"><a href="add_Student.jsp"
					style="color: #FFFFFF; text-decoration: none">添加学生</a></td>
			</tr>
			<%
				String studentNo = request.getParameter("studentNo");
				Student stu = new Student();
				if (new StudentsInformationDao().queryStudentByNo(studentNo) != null) {
					stu = new StudentsInformationDao().queryStudentByNo(studentNo);
				}
			%>
			<tr>
				<td><%=stu.getStudentNo()%></td>
				<td><%=stu.getStudentName()%></td>
				<td><%=stu.getSex()%></td>
				<td><%=stu.getDept()%></td>
				<td><%=stu.getMajor()%></td>
				<td><%=stu.getStudentClass()%></td>
				<td><%=stu.getStudentId()%></td>
				<td><%=stu.getPwd()%></td>
				<td><%=stu.getTel()%></td>
				<td><a
					href="/UniversityResourceSystem/StudentsInformationPageServlet?opttype=delete&&studentNo=<%=stu.getStudentNo()%>"
					style="text-decoration: none">删除</a></td>
				<td><a
					href="/UniversityResourceSystem/StudentsInformationPageServlet?opttype=alter&&studentNo=<%=stu.getStudentNo()%>"
					style="text-decoration: none">修改</a></td>
			</tr>
		</table>
	</div>
</body>
</html>